package com.zwg.tingshu.order.service;

import com.zwg.tingshu.model.order.OrderInfo;
import com.zwg.tingshu.vo.order.OrderInfoVo;
import com.zwg.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {


    OrderInfoVo tradeOrderData(Long userId, TradeVo tradeVo);

    Map<String, String> submitOrder(OrderInfoVo orderInfoVo, Long userId);

    OrderInfo getOrderInfo(Long userId, String orderNo);

    Page<OrderInfo> getUserOrderByPage(Page<OrderInfo> pageInfo, Long userId);

    void orderCancel(Long aLong);

    void orderPaySuccess(Long userId, String orderNo);

    OrderInfo selectOrder(Long orderId);
}
